#!/bin/bash

function system_command () {
    echo -n $1
    echo -n $2
    echo $3
    echo $#
    if [ $# -ge 4 ]; then
        echo "The sixth argument exists and its value is: $4"  
    else  
        echo "The sixth argument does not exist."  
    fi
}

function list_append() {
    $1[#$1[@]]=$2
}

#echo $list
test=(test1 test2)
read -p "输入信息：" temp_info
test+=($temp_info)
system_command ${test[@]}
list_append "test" 


exit 0